<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //题目：输入三个整数x,y,z，请把这三个数由小到大输出
        var x=+prompt("x");
        var y=+prompt("y");
        var z=+prompt("z");  
        var a=[x,y,z];
        for(j=0;j<3;j++){
        for(i=0;i<3;i++){
            if(a[i]>a[i+1]){
                temp=a[i];
                a[i]=a[i+1];
                a[i+1]=temp;
            }
            
        }}
        console.log(a)

    </script>
</body>
</html>